package extendstest;

public class SuperTest {
    public static void main(String[] args) {
        SubObject subObject = new SubObject();
        System.out.println(subObject.getAge());

    }
}

class Objects {
    public int age = 0;
    public int getAge(){
        return age;
    }

}

class SubObject extends Objects {
    public int age = 1;
    public int getAge(){
        return super.age;
    }
}